package com.itheima.travel.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.ControllerAdvice;

/**
 *
 */

@Configuration
@ComponentScan(value = "com.itheima.travel",
    excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION,classes = {
            Controller.class,ControllerAdvice.class
    })})
@EnableTransactionManagement
@EnableAspectJAutoProxy
public class SpringConfig {
}
